<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function Person() {
    }

    Person.prototype = {
        constructor: Person,
        name: "Nicholas",
        age: 29,
        job: "Software Engineer",
        sayName() {
            console.log(this.name);
        }
    };
    let friend = new Person();

    friend.sayName(); // 错误
</script>
</body>
</html>